home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / apps / r3d.js
Encoding:
Text File  |  2005-04-04  |  1.4 KB  |  51 lines

  1.  
  2. // JavaScript class to Realsoft 3D application
  3.  
  4. include("real/r3layer/r3laylis.js");
  5. include("real/r3layer/r3layer.js");
  6. include("real/layer/r3prilay.js");
  7. include("real/layer/r3matlay.js");
  8.  
  9. var R3_R3D_H = 1;
  10.  
  11. function r3LockCurrent()
  12. {
  13.     this.currentLayer.r3Attach(this.layerList.GetCurrentLayer());
  14.     this.currentLayer.primLayer.r3Attach(this.currentLayer.GetPrims());
  15.     this.currentLayer.matLayer.r3Attach(this.currentLayer.GetMaterials());
  16.     return this.currentLayer;
  17. }
  18.     
  19. function r3ReleaseCurrent()
  20. {
  21. }
  22.  
  23. function r3Main ()
  24.     this.layerList = new r3Layerlist();
  25.     this.layerList.r3Attach(_r3model);
  26.     
  27.     this.rspecLayer = new r3Listlayer();
  28.     this.rspecLayer.r3Attach(this.layerList.GetRenderSpecs());
  29.     
  30.     this.outputLayer = new r3Listlayer();
  31.     this.outputLayer.r3Attach(this.layerList.GetOutputs());
  32.  
  33.     this.channelLayer = new r3Listlayer();
  34.     this.channelLayer.r3Attach(this.layerList.GetChannels());
  35.  
  36.     this.filrenLayer = new r3Listlayer();
  37.     this.filrenLayer.r3Attach(this.layerList.GetFileRenderers());
  38.  
  39.     this.vmodLayer = new r3Listlayer();
  40.     this.vmodLayer.r3Attach(this.layerList.GetViewModels());
  41.  
  42.     this.currentLayer = new r3Layer();
  43.     this.currentLayer.primLayer = new r3Primlayer();
  44.     this.currentLayer.matLayer = new r3Materiallayer();
  45.  
  46.     this.LockCurrent = r3LockCurrent;
  47.     this.ReleaseCurrent = r3ReleaseCurrent;
  48. }
  49.  
  50.